package api

import (
	"github.com/gin-gonic/gin"
	"zg3zk3/api/handler"
	"zg3zk3/pkg"
)

func RouterLoad(r *gin.Engine) {
	r.POST("/user/login", handler.Login)
	r.POST("/upload", handler.Upload)
	user := r.Group("/user").Use(pkg.JWTAuth("2209a"))
	{
		user.POST("/addArt", handler.AddArt)
		user.GET("/chat", handler.Chat)
		user.POST("/addFocus", handler.AddFocus)
		user.GET("/getList", handler.GetList)
		user.POST("/createQun", handler.CreateQun)
	}
}
